import { request } from '../request';


export function getOpenId(code: string) {
    return request.get<any>(`/WeChat/getOpenId?code=${code}`, {}, {
        useErrMsg: true
    });
}

export function getPhoneNumber(phoneCode: string, openIdCode: string) {
    return request.get<NurseNurses.NurseNurses>(`/WeChat/getPhoneNumber?phoneCode=${phoneCode}&openIdCode=${openIdCode}`, {}, {
        useErrMsg: true
    });
}